package com.ww.springboot.boot.baseTest.类加载;

public class StaticTest2 {
	    Person person = new Person("Test");
	    static{
	        System.out.println("test static");
	    }
	     
	    public StaticTest2() {
	        System.out.println("test constructor");
	    }
	     
	    public static void main(String[] args) {
	        new MyClass();
	    }
	}

class Person{
    static{
        System.out.println("person static");
    }
    public Person(String str) {
        System.out.println("person "+str);
    }
}
	 
	 
	class MyClass extends StaticTest2 {
	    Person person = new Person("MyClass");
	    static{
	        System.out.println("myclass static");
	    }
	     
	    public MyClass() {
	        System.out.println("myclass constructor");
	    }
	}
